package com.laowang.project.system.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.laowang.framework.aspectj.lang.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 用户签到对象 tb_sign_in
 *
 * @author laowang
 * @date 2022-06-23
 */
@NoArgsConstructor
@Data
public class TbSignIn implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ApiModelProperty(value = "${comment}", required = false)
    private Long id;

    /**
     * 签到用户id
     */
    @Excel(name = "签到用户id")
    @ApiModelProperty(value = "签到用户id", required = false)
    private String userNo;

    /**
     * 连续签到天数
     */
    @Excel(name = "连续签到天数")
    @ApiModelProperty(value = "连续签到天数", required = false)
    private Integer continueDays;

    /**
     * 更新日期, 最后签到日期
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新日期, 最后签到日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "更新日期, 最后签到日期", required = false)
    private LocalDateTime lastSign;

    /**
     * 本次签到积分
     */
    @Excel(name = "本次签到积分")
    @ApiModelProperty(value = "本次签到积分", required = false)
    private Integer score;

    /**
     * 总积分
     */
    @Excel(name = "总积分")
    @ApiModelProperty(value = "总积分", required = false)
    private Integer totalScores;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date updateTime;


}
